// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_c.p_a;


public abstract class cls_a
{

    protected cls_a()
    {
        a = new byte[4];
        b = 0;
    }

    protected cls_a(cls_a a1)
    {
        a = new byte[a1.a.length];
        System.arraycopy(a1.a, 0, a, 0, a1.a.length);
        b = a1.b;
        c = a1.c;
    }

    public void a()
    {
        long l = c << 3;
        a((byte)-128);
        while(b != 0) 
            a((byte)0);
        a(l);
        c();
    }

    public void a(byte byte0)
    {
        byte abyte0[] = a;
        int i = b;
        b = i + 1;
        abyte0[i] = byte0;
        if(b == a.length)
        {
            a(a, 0);
            b = 0;
        }
        c = 1L + c;
    }

    protected  abstract  void a(long l);

    protected  abstract  void a(byte abyte0[], int i);

    public void a(byte abyte0[], int i, int j)
    {
        for(; b != 0 && j > 0; j--)
        {
            a(abyte0[i]);
            i++;
        }

        while(j > a.length) 
        {
            a(abyte0, i);
            i += a.length;
            j -= a.length;
            c = c + (long)a.length;
        }
        for(; j > 0; j--)
        {
            a(abyte0[i]);
            i++;
        }

    }

    public void b()
    {
        c = 0L;
        b = 0;
        for(int i = 0; i < a.length; i++)
            a[i] = 0;

    }

    protected  abstract  void c();

    private byte a[];
    private int b;
    private long c;
}
